export function getType (type) {
    let data = '';
    switch (type) {
        case 0:
            data = '未知'
            break;
        case 1:
            data = '蜜币充值'
            break;
        case 2:
            data = '蜜币转让'
            break;
        case 3:
            data = '蜜币收入'
            break;
        case 4:
            data = '订单支出'
            break;
        case 5:
            data = '订单退款'
            break;
        case 6:
            data = '余额充值'
            break;
        case 7:
            data = '余额收入'
            break;
        case 8:
            data = '余额转让'
            break;
        case 9:
            data = '余额提现'
            break;
        case 10:
            data = '租店'
            break;
        case 11:
            data = '租分仓'
            break;
        case 12:
            data = '租总仓'
            break;
        case 13:
            data = '店铺配额'
            break;
        case 14:
            data = '分仓配额'
            break;
        case 15:
            data = '总仓配额'
            break;
        case 16:
            data = '线下余额充值'
            break;
        case 17:
            data = '线下提现'
            break;
        case 18:
            data = '宝呗交易'
            break;
        case 19:
            data = '升级代理收益提现'
            break;
        case 20:
            data = '线下支付';
            break
        case 21:
            data = '宝石券转让';
            break
        case 22:
            data = '产品位扩容';
            break
        case 23:
            data = '其他';
            break
        default:
            data = '其他';
            break;
    }
    return data;
}

export function getPayMound (type){
    let data = '';
    switch (type) {
        case 0 :
            data = '未知'
            break ;
        case 1 :
            data = '微信'
            break ;
        case 2 :
            data = '支付宝'
            break ;
        case 3 :
            data = '银行卡'
            break ;
        case 4 :
            data = '蜜币'
            break ;
        case 6 :
            data = '余额'
            break ;
        case 7 :
            data = '线下交易'
            break ;
        case 8 :
            data = '微信公众号'
            break ;
        default:
            break;
    }
    return data
}

export function getStars(type) {   //  星际会员
    let data = ''
    switch (type){
        case '10':
            data = 'regular_members_icon'
            break;
        case '20':
            data = 'real_name_member_icon'
            break;
        case '30':
            data = 'members_icon'
            break;
        case '40':
            data = 'partner_icon'
            break;
        case '50':
            data = 'the_manager_icon'
            break;
        case '61':
            data = 'one_star_director_icon'
            break;
        case '62':
            data = 'two_star_director_icon'
            break;
        case '63':
            data = 'three_star_director_icon'
            break;
        case '64':
            data = 'four_star_director_icon'
            break;
        case '65':
            data = 'five_star_director_icon'
            break;
        case '70':
            data = 'six_star_director_icon'
            break;
        default:
            data = 'regular_members_icon'
            break
    }
    return data
}
export function getMenber(type){
    let data = ''
    switch(type){
        case '1':
            data = '<div class="ordinary_member_icon"></div><span>普通会员</span>'  //普通
            break
        case '2':
            data = '<div class="cert_menber_icon"></div><span>实名会员</span>'  //实名
            break
        case '3':
            data = '<div class="member_icon"></div><span>会员</span>' //会员
            break
        case '4':
            data = '<div class="shop_manager_icon"></div><span>店主</span>' //店主
            break
        case '5':
            data = '<div class="warehouse_manager_icon"></div><span>仓主</span>' //仓主
            break
        default:
            data = '<div class="ordinary_member_icon"></div><span>普通会员</span>'
    }
    return data
}

export function checkBankBg(type){
    if(!type || type == null){
        type = "1";
    }
    let data = "";
    let bankType = 0;
    if(type.indexOf('工商')>=0){
        bankType = 1
    }else if(type.indexOf('农业')>=0){
        bankType = 2
    }
    else if(type.indexOf('建设')>=0){
        bankType = 3
    }
    else if(type.indexOf('交通')>=0){
        bankType = 4
    }
    else if(type.indexOf('平安')>=0){
        bankType = 5
    }
    else if(type.indexOf('浦发')>=0){
        bankType = 6
    }
    else if(type.indexOf('招商')>=0){
        bankType = 7
    }
    else if(type.indexOf('邮政')>=0){
        bankType = 8
    }
    else if(type.indexOf('中国银行')>=0){
        bankType = 9
    }
    switch (bankType){
        case 1:
            data = 'ICBC_bg'
            break;
        case 2:
            data = 'ABC_bg'
            break;
        case 3:
            data = 'JH_bg'
            break;
        case 4:
            data = 'JT_bg'
            break;
        case 5:
            data = 'PA_bg'
            break;
        case 6:
            data = 'PF_bg'
            break;
        case 7:
            data = 'ZS_bg'
            break;
        case 8:
            data = 'YZ_bg'
            break;
        case 9:
            data = 'ZG_bg'
            break;
        default:
            data = 'DefaultBank_bg'
            break
    }
    return data;
}